//
//  ServiceProtocolViewController.m
//  JimiPay
//
//  Created by yull on 16/1/6.
//  Copyright (c) 2016年 com.shengyun. All rights reserved.
//

#import "ServiceProtocolViewController.h"

@interface ServiceProtocolViewController ()

@end

@implementation ServiceProtocolViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    self.navigationItem.title = APPNAME;
    [self setupCustomBackItem];
    
    NSString *path = [[NSBundle mainBundle] pathForResource:@"agreement" ofType:nil];
    NSString *agreement = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
    
    agreement = [agreement stringByReplacingOccurrencesOfString:@"快付一号" withString:APPNAME];
    agreement = [agreement stringByReplacingOccurrencesOfString:@"上海泰毅金融信息服务有限公司" withString:COMPANY_NAME];
    self.contentL.text = agreement;
    
    CGSize size = [self.contentL sizeThatFits:CGSizeMake(CGRectGetWidth([UIScreen mainScreen].bounds) - 16, 5000)];
    self.contentL.frame = CGRectMake(8, 8, size.width, size.height);
    self.scrollView.contentSize = CGSizeMake(1, size.height + 10);
}

@end
